package com.teamone.mobilewatch.model;

import java.util.Date;
/**
 * Holds record of patients readings 
 *
 */
public class PatientReadings {
	private int patientId;
	private Date readingsTime;
	private int bph;
	private int bpl;
	private int hr;
	private int t;

	/**
	 * Gets patient id
	 * 
	 */
	public int getPatientId() {
		return patientId;
	}

	/**
	 * Sets patient id
	 * 
	 * @param patientId
	 *            - id of patient
	 */
	public void setPatientId(int patientId) {
		this.patientId = patientId;
	}

	/**
	 * 
	 * Returns readings record time stamp
	 */
	public Date getReadingsTime() {
		return readingsTime;
	}

	/**
	 * Sets readings record time stamp
	 * @param readingsTime - readings record time stamp
	 */
	public void setReadingsTime(Date readingsTime) {
		this.readingsTime = readingsTime;
	}

	/**
	 * Returns blood pressure systolic
	 */
	public int getBph() {
		return bph;
	}

	/**
	 * Sets blood pressure systolic value
	 * @param bph - blood pressure systolic value
	 */
	public void setBph(int bph) {
		this.bph = bph;
	}
	/**
	 * Returns blood pressure diastolic
	 */
	public int getBpl() {
		return bpl;
	}

	/**
	 * Sets blood pressure diastolic
	 * @param bpl - blood pressure diastolic value
	 */
	public void setBpl(int bpl) {
		this.bpl = bpl;
	}

	/**
	 * Returns heart rate
	 */
	public int getHr() {
		return hr;
	}

	/**
	 * Sets heart rate
	 * @param hr - heart rate value
	 */
	public void setHr(int hr) {
		this.hr = hr;
	}

	/**
	 * Returns body temperature multiplied by 10
	 * 
	 */
	public int getT() {
		return t;
	}

	/**
	 * Sets body temperature multiplied by 10
	 * @param t - body temperature value multiplied by 10
	 */
	public void setT(int t) {
		this.t = t;
	}
	
	/**
	 * Returns body temperature 
	 * 
	 */
	public float getTemperature() {
		return t/10.0f;
	}
	
}
